package com.sdgakj.foton.cloud.dictionary.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sdgakj.foton.cloud.dictionary.base.bean.ProductType;
import com.sdgakj.foton.cloud.dictionary.base.dao.ProductTypeDao;
import com.sdgakj.foton.cloud.dictionary.service.IProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * Service
 *
 * @author zhaozhe
 * @Date 2018-07-04 13:39
 */
@Service
@Transactional
public class ProductTypeServiceImpl extends ServiceImpl<ProductTypeDao,ProductType> implements IProductTypeService {

    @Autowired
    private ProductTypeDao productTypeDao;

    @Override
    public ProductType getByName(String name) {
        return productTypeDao.getByName(name);
    }
}
